Microsoft DirectX 8.1 (C++)

AMTimelineObj.SetUserData Method

The AMTimelineObj.SetUserData method sets application-defined persistent data.

Syntax

object.SetUserData(
    pData As Byte,
    Size As Long
)

Parameters

pData

Reference to an array of bytes that contains the data.

Size

Size of the array, in bytes.

Error Codes

If the method fails, an error is raised, and Err.Number can be set to one of the following values:

Value Description
E_OUTOFMEMORY Insufficient memory.

Remarks

Pass the pData parameter by reference, using the first element of the array as the parameter value:

Dim UserData(100) As Byte
' Initialize the array (not shown).
objTimelineObject.SetUserData UserData(0), 100

See Also